package fr.utilities;

public final class Constantes {
	
	private Constantes(){}
	
	public static final String USER_SESSION = "userToken";
	public static final Integer USER = 1;
	
	public static final String LOGG_AUTOM_ACTION = "loggedautom";
	
	public static final String APPLICATIONS_SU_FORM = "ApplicationSuperUserForm";

	public static final String REDIRECT_SU_SHOW_APPS = "redirect:/superuser/showApps";

	public static final String MSG_RESPONSE_NOT_NULL = "{reponse.notnull}";
	
	
	public static enum StatutApplication{
		NON_COMMENCEE("non commencée",1),
		DISPONIBLE("disponible",2),
		EPUISEE("épuisée",3);

		private String libelle;
		private Integer code;
		
		StatutApplication(String pLibelle, Integer pCode){
			this.libelle = pLibelle;
			this.code = pCode;
		}
		
		public String getLibelle(){
			return libelle;
		}
		
		public Integer getCode(){
			return code;
		}
	}

	public static enum StatutApplicationUser{
		DISPONIBLE("disponible",1),
		PARTICIPATION_ENCOURS_NOK("participation en cours",2),
		PARTICIPATION_ENCOURS_OK("participation en cours",3),
		EPUISEE("épuisée",4);

		private String libelle;
		private Integer code;
		
		StatutApplicationUser(String pLibelle, Integer pCode){
			this.libelle = pLibelle;
			this.code = pCode;
		}
		
		public String getLibelle(){
			return libelle;
		}
		
		public Integer getCode(){
			return code;
		}
	}

	public static enum StatutInscription{
		INVALIDE("Invalide",1),
		VALIDE("Valide",2);

		private String libelle;
		private Integer code;
		
		StatutInscription(String pLibelle, Integer pCode){
			this.libelle = pLibelle;
			this.code = pCode;
		}
		
		public String getLibelle(){
			return libelle;
		}
		
		public Integer getCode(){
			return code;
		}
	}

	public static enum StatutParticipation{
		COMMENCEE("commencée",1),
		VALIDEE("validée",2),
		VALIDEE_SU("validée SU",3),
		NON_VALIDEE_SU("invalidée SU",4);

		private String libelle;
		private Integer code;
		
		StatutParticipation(String pLibelle, Integer pCode){
			this.libelle = pLibelle;
			this.code = pCode;
		}
		
		public String getLibelle(){
			return libelle;
		}
		
		public Integer getCode(){
			return code;
		}
	}
	
	public static enum StatutUser{
		USER("user",1),
		SUPERUSER("super user",2),
		CONSULTATION("consultation",3);

		private String libelle;
		private Integer code;
		
		StatutUser(String pLibelle, Integer pCode){
			this.libelle = pLibelle;
			this.code = pCode;
		}
		
		public String getLibelle(){
			return libelle;
		}
		
		public Integer getCode(){
			return code;
		}
	}

	public static enum StatutCivilite{
		MONSIEUR("Monsieur",1),
		MADAME("Madame",2),
		MADEMOISELLE("Mademoiselle",3);

		private String libelle;
		private Integer code;
		
		StatutCivilite(String pLibelle, Integer pCode){
			this.libelle = pLibelle;
			this.code = pCode;
		}
		
		public String getLibelle(){
			return libelle;
		}
		
		public Integer getCode(){
			return code;
		}
	}

}
